package com.lm.artemis.consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class MsgConsumer {

    @JmsListener(destination = "test.queue")
    public void receive(String message) {
        System.out.println("收到消息: " + message);
    }
}
